#include "cpu/exec/template-start.h"

#define instr lods

make_helper(concat3(instr,_p_,SUFFIX)){
    REG(R_EAX) = MEM_R(cpu.esi,R_DS);
    cpu.esi += (cpu.eflags.DF ? -DATA_BYTE : DATA_BYTE);

    print_asm("lods");

    return 1;
}

#include "cpu/exec/template-end.h"